/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package my.cbr.database.model;

import jcolibri.cbrcore.Attribute;
import jcolibri.cbrcore.CaseComponent;

/**
 *
 * @author Marte
 */
public class ApproximationNumber implements CaseComponent{

    private Double a = 1234.4321;
    private Double b = 1234.4321;
    private Integer approximationNumberID;

    public Integer getApproximationNumberID() {
        return approximationNumberID;
    }

    public void setApproximationNumberID(Integer approximationNumberID) {
        this.approximationNumberID = approximationNumberID;
    }
    
    @Override
    public String toString() {
        return "y = a + bx = " + a + " + " + b + "x";
    }

    public Double getA() {
        return a;
    }

    public void setA(Double a) {
        this.a = a;
    }

    public Double getB() {
        return b;
    }

    public void setB(Double b) {
        this.b = b;
    }

    public Attribute getIdAttribute() {
        return new Attribute("approximationNumberID", this.getClass());
    }


}
